/*
 * @Author: yanjikun
 * @Date: 2022-06-13 14:03:56
 * @LastEditors: yanjikun
 * @LastEditTime: 2022-06-14 11:47:38
 * @Description: file content
 */

import { MockMethod } from 'vite-plugin-mock'
import menu from './menu.json'
export default [
  {
    url: '/api/v1/supervision/organizations/config/domain',
    method: 'get',
    response: () => {
      return {
        code: 1,
        msg: '成功',
        data: {
          id: 14,
          domainName: 'http://localhost:3000',
          orgName: 'xxxxx',
          shortName: '项目模板',
          platform: '基于Vue3中后台项目模板',
          slogan: null,
          technicalSupport: '©Copyright 2022 技术支持:后台项目模板',
          icp: '蜀ICP备2021032286号-1',
          logo: null,
        },
      }
    },
  },
  {
    url: '/api/v1/users/rights',
    method: 'post',
    response: () => {
      return {
        code: 1,
        msg: '成功',
        data: menu,
      }
    },
  },
] as MockMethod[]
